import javax.swing.*;
import java.awt.*;
import java.util.HashMap;
import java.util.Map;

public class SqliteFrame extends JInternalFrame {
    
    public static final String NAME = "SqliteInnerFrame";
    
    
    public SqliteFrame(JDesktopPane desktopPane) {
        setName(NAME);
        setTitle("Sqlite配置");
        setBounds(desktopPane.getWidth() / 5, desktopPane.getHeight() / 5, 3 * desktopPane.getWidth() / 5, 3 * desktopPane.getHeight() / 5);
        setIconifiable(true);
        setMaximizable(false);
        setClosable(true);
        setLayout(null);
    
        Box contentPane = Box.createVerticalBox();
        contentPane.setBorder(BorderFactory.createLineBorder(Color.RED));
        contentPane.setAlignmentX(Component.CENTER_ALIGNMENT);
        contentPane.setBounds(0, this.getHeight() / 4, this.getWidth(), this.getHeight() / 2);
    
        Map<String, Object> textFieldPropMap = new HashMap<>();
        textFieldPropMap.put("columns", 15);
        
    
        desktopPane.add(this);
    }
    
}
